<?php
//Compiled by TIBlog Template Engine v2.0 , Created on : 2011-05-03 16:57:30
defined('IN_DTE') or exit('Access Denied');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>Administrator's Control Panel</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="/static/admin/style.css" type=text/css rel=stylesheet>
<script src="/static/js/jquery.min.js" type="text/javascript" ></script>
<script src="/static/js/autocomplete.js" type="text/javascript" ></script>
<link rel="stylesheet" type="text/css" href="/static/css/jquery.autocomplete.css" />
<META content="MSHTML 6.00.2900.3157" name=GENERATOR>
<script language="javascript">
$().ready(function() {
	$("#title").autocomplete('/admin/hotmovie/getmovies/', {
		minChars:1,
		max: 50,
		width:217,
		scrollHeight:420,
		//mustMatch: true,
		formatItem: function(data, i, total){			
			return data['0'];
		}
	}).result(function(e, item) {
		if(item == null ){
			//alert("未匹配值!");
		}else{
			$("#movieid").val(item['1']);
		}
    });
});
</script>
</HEAD>
<BODY id=main>
<FORM name=form1 action="" method=post>
<h2>新增热映中电影</h2>
<table cellspacing="0" cellpadding="0" width="100%"  class="maintable">
<tr><th>请输入热映中电影</th><td>
<input type="text" name="title" id="title" size="30" value="<?php
echo $_obj['title'];
?>
" class="input"/></td></tr>
<tr><th>电影ID</th><td><input name="movieid" id="movieid" type="text" size="10" class="input" value="" /></td></tr>
</table>
<div class="buttons">
<input type="submit" value="增加" class="btn">
<input type="reset" value="重置" class="btn">
</div>
</form>
</BODY></HTML>
